<?php

namespace Catalog;

use Doctrine\ORM\Mapping as ORM;

/**
 * Catalog\DeliverySent
 *
 * @ORM\Table(name="delivery_sent")
 * @ORM\Entity
 */
class DeliverySent
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var datetime $createdAt
     *
     * @ORM\Column(name="created_at", type="datetime", nullable=false)
     */
    private $createdAt;

    /**
     * @var Catalog\DeliveryEmail
     *
     * @ORM\ManyToOne(targetEntity="Catalog\DeliveryEmail")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="email_id", referencedColumnName="id")
     * })
     */
    private $email;

    /**
     * @var Catalog\DeliveryMessages
     *
     * @ORM\ManyToOne(targetEntity="Catalog\DeliveryMessages")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="message_id", referencedColumnName="id")
     * })
     */
    private $message;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set createdAt
     *
     * @param datetime $createdAt
     * @return DeliverySent
     */
    public function setCreatedAt($createdAt)
    {
        $this->createdAt = $createdAt;
        return $this;
    }

    /**
     * Get createdAt
     *
     * @return datetime 
     */
    public function getCreatedAt()
    {
        return $this->createdAt;
    }

    /**
     * Set email
     *
     * @param Catalog\DeliveryEmail $email
     * @return DeliverySent
     */
    public function setEmail(\Catalog\DeliveryEmail $email = null)
    {
        $this->email = $email;
        return $this;
    }

    /**
     * Get email
     *
     * @return Catalog\DeliveryEmail 
     */
    public function getEmail()
    {
        return $this->email;
    }

    /**
     * Set message
     *
     * @param Catalog\DeliveryMessages $message
     * @return DeliverySent
     */
    public function setMessage(\Catalog\DeliveryMessages $message = null)
    {
        $this->message = $message;
        return $this;
    }

    /**
     * Get message
     *
     * @return Catalog\DeliveryMessages 
     */
    public function getMessage()
    {
        return $this->message;
    }
}